package com.mineoj.service;

import com.mineoj.model.entity.NewsThumb;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mineoj.model.entity.User;

/**
* @author 明月
* @description 针对表【news_thumb(新鲜事点赞)】的数据库操作Service
* @createDate 2025-04-11 19:39:39
*/
public interface NewsThumbService extends IService<NewsThumb> {
    /**
     * 点赞
     *
     * @param newsId
     * @param loginUser
     * @return
     */
    int doNewsThumb(long newsId, User loginUser);

    /**
     * 新鲜事点赞（内部服务）
     *
     * @param userId
     * @param newsId
     * @return
     */
    int doNewsThumbInner(long userId, long newsId);

}
